
/**
 * Protocol used for packets
 * P = Player
 * A = Account Server
 * G = Game Server
 *
 * I = Integer
 * S = String
 * C = Char
 *
 * $Id: protocol.h 19 2009-02-05 09:59:54Z ko2fan $
 */

#ifndef ST_PROTOCOL_H
#define ST_PROTOCOL_H

enum
{
	// Player and Account Communication
	// Connecting
	PAMSG_CONNECT           = 0x0001, // I version
	APMSG_CONNECT_RESPONSE  = 0x0002, // C error

	// Registering
	PAMSG_REGISTER          = 0x0005,
	APMSG_REGISTER_RESPONSE = 0x0006,

	// Logging In
	PAMSG_LOGIN             = 0x0008,
	APMSG_LOGIN_RESPONSE    = 0x0009,

};

enum
{
	ERR_NONE          = 0,
	ERR_INVALID_VER   = 1,
	ERR_INVALID_NAME  = 2,
	ERR_INVALID_PASS  = 3,
	ERR_INVALID_EMAIL = 4
};

#endif

